From f33a7ba91c3ef9520856e9dc65b4943f81afb9f1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 24 Jan 2008 14:41:26 +0000 Subject: [PATCH] block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist. Signed-off-by: Masaki Kanno --- tools/examples/blktap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/examples/blktap b/tools/examples/blktap index bd914d5858..7016e299d1 100644 --- a/tools/examples/blktap +++ b/tools/examples/blktap @@ -71,9 +71,9 @@ then fi # some versions of readlink cannot be passed a regular file if [ -L "$p" ]; then - file=$(readlink -f "$p") || ebusy "$p link does not exist." + file=$(readlink -f "$p") || fatal "$p link does not exist." else - [ -f "$p" ] || { ebusy "$p file does not exist."; } + [ -f "$p" ] || { fatal "$p file does not exist."; } file="$p" fi @@ -85,7 +85,7 @@ fi if [ "$command" = 'add' ] then - [ -e "$file" ] || { ebusy $file does not exist; } + [ -e "$file" ] || { fatal $file does not exist; } success fi -- 2.30.2